package com.api.shopapi.service.impl;

import com.api.shopapi.entity.NursingSchedulingDaytime;
import com.api.shopapi.mapper.NursingSchedulingDaytimeMapper;
import com.api.shopapi.service.NursingSchedulingDaytimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("NursingSchedulingDaytimeServiceImplOne")
public class NursingSchedulingDaytimeServiceImpl implements NursingSchedulingDaytimeService {
    @Autowired
    private NursingSchedulingDaytimeMapper nursingSchedulingDaytimeMapper;


    @Override
    public int insert(NursingSchedulingDaytime nursingSchedulingDaytime) {
        return nursingSchedulingDaytimeMapper.insert(nursingSchedulingDaytime);
    }

    @Override
    public int updateByNursingSchedulingDaytimeCode(NursingSchedulingDaytime nursingSchedulingDaytime) {
        return nursingSchedulingDaytimeMapper.updateByNursingSchedulingDaytimeCode(nursingSchedulingDaytime);
    }

    @Override
    public int deleteByNursingSchedulingDaytimeCode(String nursingSchedulingDaytimeCode) {
        return nursingSchedulingDaytimeMapper.deleteByNursingSchedulingDaytimeCode(nursingSchedulingDaytimeCode);
    }

    @Override
    public NursingSchedulingDaytime getByNursingSchedulingDayTimeCode(String nursingSchedulingDaytimeCode) {
        return nursingSchedulingDaytimeMapper.getByNursingSchedulingDayTimeCode(nursingSchedulingDaytimeCode);
    }

    @Override
    public NursingSchedulingDaytime getByNursingSchedulingCode(String nursingSchedulingCode) {
        return nursingSchedulingDaytimeMapper.getByNursingSchedulingCode(nursingSchedulingCode);
    }

    @Override
    public int deleteByNursingSchedulingCode(String nursingSchedulingCode) {
        return nursingSchedulingDaytimeMapper.deleteByNursingSchedulingCode(nursingSchedulingCode);
    }
}
